﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="ReportDrugs.aspx.cs" Inherits="Admin_ReportDrugs" Title="" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
            width: 250px;
        }
        .style3
        {
            width: 120px;
        }
        .style4
        {
            width: 230px;
            height: 43px;
        }
        .style5
        {
            width: 200px;
            height: 43px;
        }
        .style6
        {
            height: 43px;
        }
    </style>
     <script language="javascript" type="text/javascript">
 
 function HandleKey(combo, e) {
            var key;
            var keychar;

            if (window.event)
                key = window.event.keyCode;
            else if (e)
                key = e.which;
            else
                return true;

        }
 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <table style="width: 100%;">
        <tr>
            <td class="style3">
                <asp:Label ID="Label3" runat="server" Text="Group"></asp:Label>
            </td>
            <td class="style2">
                <data:EntityDropDownList runat="server" ID="dataGroupId" AppendNullItem="true" Required="true"
                    ValidationGroup="Main" NullItemText="< Please Choose ...>" ErrorText="Required" AutoPostBack="true"
                    Width="160px" DataTextField="GroupName" DataValueField="GroupId" DataSourceID="GroupDataSource" />
                <data:GroupDataSource runat="server" ID="GroupDataSource" SelectMethod="GetAll">
                </data:GroupDataSource>
            </td>
            <td class="style6">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label4" runat="server" Text="Drug"></asp:Label>
            </td>
            <td id="radcombo">
                <telerik:RadComboBox ID="cbo_DrugID" runat="server" Width="200px" CssClass="radcombo"
                    DropDownWidth="400px" EmptyMessage="Choose a Drug" HighlightTemplatedItems="True"
                    EnableLoadOnDemand="True" OnItemsRequested="cbo_DrugID_ItemsRequested" OnClientKeyPressing="HandleKey"
                    TabIndex="10" ValidationGroup="Detail">
                    <HeaderTemplate>
                        <table style="width: 600px" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="width: 300px;">
                                    Drug Name
                                </td>
                                <td style="width: 100;">
                                    Drug Id
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="width: 600px" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="width: 300px;">
                                    <%# DataBinder.Eval(Container, "Text")%>
                                </td>
                                <td style="width: 100px;">
                                    <%# DataBinder.Eval(Container, "Attributes['DrugId']")%>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadComboBox>
            </td>
            <td class="style6">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label1" runat="server" Text="From date"></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="txtfromdate" runat="server" CssClass="datepicker text-input"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ReqVal_dataGrnDate" ValidationGroup="Main" runat="server"
                    Display="Dynamic" ControlToValidate="txtfromdate" ErrorMessage="Required"></asp:RequiredFieldValidator>
            </td>
            <td class="style6">
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:Label ID="Label2" runat="server" Text="To date"></asp:Label>
            </td>
            <td class="style2">
                <asp:TextBox ID="txttodate" runat="server" CssClass="datepicker text-input"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="Main" runat="server"
                    Display="Dynamic" ControlToValidate="txttodate" ErrorMessage="Required"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" class="style1" colspan="2">
                <asp:Button ID="btnview" runat="server" Text="View" OnClick="btnview_Click" ValidationGroup="Main" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
